// 引入封装好的request
import request  from "@/utils/request";
// 获取所有评论
export const getCommentsApi = (data)=>{
    return request({
        url:'/comment/getcomment',
        method:'POST',
        data
    })
}
// 删除评论
export const delCommentApi = (data)=>{
    return request({
        url:'/comment/delcomment',
        method:'POST',
        data
    })
}

// 添加评论
export const addCommentApi = (data)=>{
    return request({
        url:'/comment/addcomment',
        method:'POST',
        data
    })
}

// 点赞
export const goGoodApi = (data)=>{
    return request({
        url:'/comment/gogood',
        method:'POST',
        data
    })
}

